<template>
  <div id="app">
    <headers></headers>
    <router-view></router-view>
    <Footer v-show="$route.meta.show"></Footer>
  </div>
</template>

<script>
import Headers from "./components/header/index.vue";
import Footer from "./components/footer/index.vue";
export default {
  name: "App",
  components: {
    Headers,
    Footer,
  },
  mounted() {
    //获取三级列表的数据
    this.$store.dispatch("categoryList");
    //获取mock的模拟数据
  },
};
</script>

<style>
* {
  margin: 0;
  padding: 0;
}
</style>
